





gpoisson allregsall partisan nonpartisan quasipartisan  prevcyclespend foldcitideol ///
	 moralistic lawyers ///
	 prioradv_campaign prior_disc_campaign indcommission salpremdiscretion abacomte narrowctdec broadctdec stringency squireleg03 /// 
	  totcites purban ///
	yr1 yr2 yr3 yr4 yr5 yr6 yr7 yr8 yr9 yr10 yr11 yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
	 , vce(cluster state)
	 outreg using "xx.doc", se starlevels(10 5 1) varlabels ctitles(" ", "Variable", "Estimates") ///
summstat(r2_p\ll\ll_0\N_clust\chi2\p) summtitle("Pseudo R2" \ "Log-likelihood"\"Log-Likelihood, null"\"Number of Clusters"\"Wald Chi2"\"Prob p>0") replace 
	 estimates store gpoisson1
	 test  yr3 yr4 yr5 yr6 yr7 yr8 yr9 yr10 yr11 yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 
	 *test signif--there is a diff between models with and without

	 
	 
	 
 gpoisson allregsall partisan nonpartisan quasipartisan  prevcyclespend foldcitideol ///
	 moralistic lawyers ///
	 prioradv_campaign prior_disc_campaign indcommission salpremdiscretion abacomte narrowctdec broadctdec stringency squireleg03 /// 
	  totcites  ///
	aba lag_aba lag2_aba purban, vce(cluster state)	 
outreg using "xx.doc", se starlevels(10 5 1) varlabels ctitles(" ", "Variable", "Estimates") ///
summstat(r2_p\ll\ll_0\N_clust\chi2\p) summtitle("Pseudo R2" \ "Log-likelihood"\"Log-Likelihood, null"\"Number of Clusters"\"Wald Chi2"\"Prob p>0")  ///	
	title("Generalized Poisson Regression"\"Number of State Canons"\"1990-2010"\"Robust s.e. clustered on state") merge
	estimates store gpoisson2


gpoisson allregsall partisan nonpartisan quasipartisan  prevcyclespend foldcitideol ///
	 prioradv_campaign prior_disc_campaign indcommission salpremdiscretion abacomte narrowctdec broadctdec stringency squireleg03 /// 
	 totopins totcites pctamicus ///
	 aba lag_aba lag2_aba  ///
	 hs purban if partisan==1 | nonpartisan==1, vce(cl state)	
outreg using "gpoisson partisan robustness.doc", se starlevels(10 5 1) varlabels  ///
ctitles(" " "Variable", "Part. & Nonpart. Only") merge



*Fig 3.1	
 estimates restore gpoisson1
 margins, dydx(stringency broadctdec narrowctdec abacomte indcommission  ///
   quasipartisan nonpartisan partisan) atmeans 
marginsplot, horizontal xline(0) plotopts(connect(i)) 

*Fig 3.2

estimates restore gpoisson1
 marginscontplot lawyers, at1(1.100(1.000)150.000) ci
  graph save "gpoisson_lawyers.gph", replace
